<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zyInspectionPlanList" checkbox="true" fitColumns="false" title="巡检任务"  
			actionUrl="zyInspectionPlanController.do?engineerInspectionPlanListDatagrid" idField="id" fit="true" queryMode="group">
			<t:dgCol title="主键"			field="id"  	hidden="true"					width="120"		sortable="false"/>
			<t:dgCol title="巡检计划ID"		field="planId"    								queryMode="single"  query="true" 	url="zyInspectionPlanController.do?detailsOfEngineerPlan&id={id}" funname="planDetials"	width="100"/>
			<t:dgCol title="设备SN"			field="equipmentSpare.sn"    					queryMode="single"	query="true"	width="90"/>
			<t:dgCol title="巡检计划备注"		field="remarks"    								width="120" sortable="false"/>
			<t:dgCol title="影院名称"		field="equipmentSpare.zyCinema.name"			queryMode="single"  query="true"	sortable="false"	width="130"/>
			<t:dgCol title="省市"			field="tsTerritoryVal"							width="100"		sortable="false"/>
			<t:dgCol title="影院地址"		field="equipmentSpare.zyCinema.address"			width="370"		sortable="false"/>
			<t:dgCol title="影院巡检联系人"	field="zyCmIpCt.name"							width="100"		sortable="false" />
			<t:dgCol title="联系人电话1"		field="zyCmIpCt.cellphone1"						width="95"		sortable="false" />
			<t:dgCol title="联系人电话2"		field="zyCmIpCt.cellphone2"						width="95"		sortable="false" />
			<t:dgCol title="光路"			field="lightPath"			width="60"	sortable="false" dictionary="<%=StaticValue.DIC_LIGHT_PATH %>" />
			<t:dgCol title="去年巡检日期"		field="equipmentSpare.lastYearInspectionDate"	width="100"		formatter="yyyy-MM-dd"/>
			<t:dgCol title="计划巡检月份"		field="ipPlanDate"								width="150"		sortable="false" formatter="yyyy年-MM月"/>
			<t:dgCol title="预约上门时间"		field="engineerOrderTime"						width="95"		formatter="yyyy-MM-dd"/>
			<t:dgCol title="巡检计划状态"		field="state"									queryMode="single"	query="true"	sortable="false"	dictionary="<%=StaticValue.DIC_PLAN_STATE %>" width="110"/>

			<t:dgCol title="操作" field="opt" width="100"/>
			<t:dgFunOpt funname="inspectionReport(id)" title="巡检报告" exp="state#eq#${reportRules }"></t:dgFunOpt>
			<t:dgToolBar title="批量接受" icon="icon-add" url="" funname="assignInToolBar"></t:dgToolBar>
			<t:dgToolBar title="批量拒绝" icon="icon-add" url="" funname="refuseInToolBar"></t:dgToolBar>
			
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$('<span style="color:blue;font-size:10px;">说明：接受任务后须在与影院约好上门时间后填写【预约上门时间】，否则将无法提交完工报告。</span>').insertBefore($("div[name='searchColums']"));
});
</script>
<script type="text/javascript" src="webpage/com/zybk/zy_inspection_plan/zyEngineerInspectionPlanList.js"></script>